<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>MUSIC LIST</title>
<meta name="Author" content="ExoBUD, Jinwoong Yu">
<meta name="Keywords" content="ExoBUD MP">
<meta name="Description" content="asf,asx,wma,wmx,wmv,wvx,mp3,wav,mid 媒体播放程序">
<link rel="stylesheet" type="text/css" href="exobudpl.css">


<script type="text/javascript">
<!--
var via = window.opener;
var write_via = "window.opener";
var iLoc = self.location.href;



function playSel(){via.wmpStop();via.startExobud();}
function refreshPl(){self.location=iLoc;}
function chkSel(){via.chkAllSel();refreshPl();}
function chkDesel(){via.chkAllDesel();refreshPl();}

function dspList(n){
 var elmABlock = 15; // 每页显示曲目
 var totElm = via.intMmCnt;
 var totBlock = Math.floor((via.intMmCnt-1) / elmABlock)+1;
 var cblock;
 if(n==null){cblock=1;} else {cblock=n;}
 var seed;
 var limit;
 if(cblock < totBlock){
   seed=elmABlock*(cblock-1); limit=cblock*elmABlock-1;
 } else {
   seed=elmABlock*(cblock-1); limit=totElm-1;
 }

 if(via.intMmCnt > 0){
   var list_num=0;
   mmList.innerHTML="<p>";
   pageList.innerHTML=" &nbsp;跳页：";
   for (var i=seed; i <= limit; i++){
     list_num = i + 1;
     if(via.objMmInfo[i].selMm=="t"){
       elm = "&nbsp;<input type=checkbox onClick=\"" + write_via + ".chkItemSel(" + i + ");\" checked";
       elm += " title='切换是否要播放此曲目' style='cursor:hand'>";
     } else {
       elm = "&nbsp;<input type=checkbox onClick=\"" + write_via + ".chkItemSel(" + i + ");\"";
       elm += " title='切换是否要播放此曲目' style='cursor:hand'>";
     }
     elm += "&nbsp;<span lang=ko>&#9836;</span>" + list_num + ". ";
     elm += "<a href=\"javascript:" + write_via + ".selPlPlay(" + i + ");\"";
     elm += " title='单击播放此单一曲目'>";
     if(via.objMmInfo[i].mmTit =="nAnT"){
       elm += "未指定媒体标题（等待自动获取媒体信息）";
     } else {
       elm += via.objMmInfo[i].mmTit;
     }
     elm += "</a><br>";
     mmList.innerHTML=mmList.innerHTML+elm;
   }
   for(var j=1; j<=totBlock; j++){
     page = "<a href=\"javascript:dspList(" + j + ")\">[" + j + "]<a> ";
     pageList.innerHTML=pageList.innerHTML+page;
   }
   pageInfo.innerHTML = "Ω: " + cblock + " / " + totBlock;
 } else {
   mmList.innerHTML = "<br><div align=center style='color:white'>播放清单上没有设定任何曲目</div>";
 }
}

//-->
</script>
</head>

<body bgcolor="BABAC4" leftmargin=0
  topmargin=0 marginwidth=0 marginheight=0 onLoad="dspList()" onDragStart="return false" onSelectStart="return false">
<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>
  <tr>
    <td height=50 valign=top class="row1"> <img src="img/pl_g_title.gif" width=300 height=50 alt="-=D-SHOW=-媒体播放清单"> 
    </td>
  </tr>
  <tr><td valign=top class="row1"><br><div id="mmList"></div></td></tr>
  <tr>
    <td height=40 valign=top style="padding-top:2px" class="row1">
<div id="pageList"></div></td></tr>
  <tr>
    <td height=28 class="row2">
      <table width=100% cellpadding=0 cellspacing=0 border=0>
        <tr>
          <td nowrap>
            &nbsp;
            <span id="pageInfo"></span>
            &nbsp;
          </td>
          <td align=right
           ><img src="./img/pl_g_allsel.gif" border=0
              onClick="chkSel()"       style="cursor:hand" title="全部选取"
           ><img src="./img/pl_g_desel.gif" border=0
              onClick="chkDesel()"     style="cursor:hand" title="全部不选"
           ><img src="./img/pl_g_playsel.gif" border=0
              onClick="playSel()"      style="cursor:hand" title="播放已选取的曲目"
           ><img src="./img/pl_g_winclose.gif" border=0
              onClick="window.close()" style="cursor:hand" title="关闭本视窗"
          ></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html>